#ifdef __KERNEL__

#define clib_malloc(n) kmalloc( n, GFP_KERNEL | __GFP_ZERO )
#define clib_realloc(p,n) krealloc( p, n, GFP_KERNEL | __GFP_ZERO )
#define clib_free(x) kfree( x )

#else

#define clib_malloc(n) malloc( n )
#define clib_realloc(p,n) realloc( p, n )
#define clib_free(x) free( x )

#endif

